<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<script type="text/javascript">
function nextPage(doc){
	doc.forms[0]["paging.page"].value=${param.page+1};
	submitForm();
}
function lastPage(doc){
	doc.forms[0]["paging.page"].value=${param.maxPage};
	submitForm();
}
function previousPage(doc){
	doc.forms[0]["paging.page"].value=${param.page-1};
	submitForm();
}
function firstPage(doc){
	doc.forms[0]["paging.page"].value=1;
	submitForm();
}

</script>

<tr class="greyheader">
<td height="25" colspan="12" align="center">
<table border="0" width="98%" cellpadding="0" cellspacing="0">
<tbody><tr>
<td width="85%" align="left" valign="middle">

<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td align="right" width="55" valign="bottom">
<c:choose>
<c:when test="${param.page>1}">
	<a href="#" onclick="firstPage(document);"><img src="ico/first_active.png" name="id_last"></a>
	<a href="#" onclick="previousPage(document);"><img src="ico/previous_active.png" name="id_next"></a>	
</c:when>
<c:otherwise>
	<img src="ico/first_fade.png">
	<img src="ico/previous_fade.png">
</c:otherwise>
</c:choose>	
<img src="ico/pipe.png">
</td>
<td align="center" width="150" valign="middle">
<sf:input path="paging.page" size="3" maxlength="4" name="page" id="page"/> / ${param.maxPage} 
<input class="button blue small" type="button" value="Go" onclick="javascript:submitForm();">
</td>
<td align="left" width="80" valign="bottom">
<img src="ico/pipe.png">
<c:choose>
<c:when test="${param.page>=param.maxPage}">
	<img src="ico/next_fade.png" name="id_next">
	<img src="ico/last_fade.png" name="id_next">
</c:when>
<c:otherwise>
	<a href="#" onclick="nextPage(document);" ><img src="ico/next_active.png" name="id_next"></a>
	<a href="#" onclick="lastPage(document);" ><img src="ico/last_active.png" name="id_last"></a>
</c:otherwise>
</c:choose>
</td>
</tr>
</tbody></table>
	
</td>
<td width="15%" align="right">

<%-- [1 - 10 / 21]  --%>

</td>
</tr>
</tbody></table>
</td>
</tr>